package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.domain.ClassInfo;
import com.ruoyi.business.domain.bo.ClassInfoBo;
import com.ruoyi.business.domain.vo.ClassInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 最爱喝兽奶
 * @create 2022/9/2
 **/
public interface ClassInfoMapper extends BaseMapper<ClassInfo> {
    /**
     * 分页查询班级列表信息
     * @param buildPage
     * @param bo
     * @return
     */
    Page<ClassInfoVo> queryClassListByPage(@Param("page") Page<ClassInfoBo> buildPage, @Param("bo") ClassInfoBo bo);

    /**
     * 根据分配的老师id信息，查询出班级信息
     * @param teacherId 教师id
     * @return
     */
    List<String> selectIdByTeacherId(@Param("teacherId") String teacherId);
}
